﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
	if(isset($_POST['action']) && $_POST['action'] == 'baixa'){
		$barcode = (!get_magic_quotes_gpc()) ? addslashes($_POST['barcode']) : $_POST['barcode'];
		$observacoes_tp = (!get_magic_quotes_gpc()) ? addslashes($_POST['observacoes_tp']) : $_POST['observacoes_tp'];
		
		$msg = '<script type="text/javascript"> alert("Entrega Baixada!")</script>';
	}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Baixa de Cesta</title>

<style type="text/css">
	*{
		padding:0;
		margin:0;
		border:0;
	}
	
	.div_form{
		margin:0 auto;
		width:800px;
		height:105px
	}
	.div_barcode{
		margin:10px 5px 0 5px;
		width:790px;
		height:auto;
	}
	.ipt_barcode{
		float:left;
		width:200px;		
		height:20px;
		padding:0 2px;
		margin:0 10px;
		border:1px solid #999;
		border-radius:3px;
	}
	.div_txarea{
		float:left;
		width:790px;
		margin:10px 5px 0;
	}
	.ipt_baixa{
		border:double 1px #999;
		border-radius:3px;
		height:22px;
	}
	.div_barcode span{
		float:left;
		padding-top:1px;
		height:20px
	}
	.txa_obs{
		width:375px;
		height:50px;
		border:solid 1px #999;
	}
	
</style>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data">
    <div class="div_form">
		<div class="div_barcode">
			<label>
				<span>Code de Barras :</span>
				<input type="text" name="barcode" value="" class="ipt_barcode" />
			</label>
			<label>
				<input type="hidden" name="action" value="baixa" />
				<input type="submit" name="baixa" value="Baixar" class="ipt_baixa" />
			</label>
		</div>
		<div class="div_txarea">
			<label>
				<textarea name="observacoes_tp" class="txa_obs"></textarea>
			</label>
		</div>
    </div>
</form>
<?php 
	if(isset($msg))
		echo $msg;
?>
</body>
</html>